package org.huangrui.design.pattern.decorate;

public class NataDeCoco extends Ingredients {// 椰果配料

    public NataDeCoco(Product product) {
        super(product);
    }

    @Override
    public double totalPrice() {
        return super.totalPrice() + 3;
    }

    @Override
    public String showMaterials() {
        return super.showMaterials() + "，椰果";
    }
}
